/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.framework.exception;

/**
 * <code>DataAccessException</type>
 * 
 * 
 * @author Shyam Nair
 */
public class DataAccessException extends Exception
{
    /**
     * generated serialVersionUID
     */
    private static final long serialVersionUID = 6824271880407350640L;

    /** attribute holding the error code corresponding to application */
    private final DataAccessErrorCode mErrorCode;

    /**
     * 
     * @param errorCode
     * @param message
     * @param th
     */
    public DataAccessException(final DataAccessErrorCode errorCode, final String message,
                               final Throwable th)
    {
        super(message, th);
        mErrorCode = errorCode;
    }

    /**
     * @return Returns the mErrorCode.
     */
    public DataAccessErrorCode getErrorCode()
    {
        return mErrorCode;
    }

}
/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Apr 6, 2014   Shyam Nair
 * File created
 * ----------------------------------------------------------------------------
 */